<div id="main_block" style="padding-top: 4px; padding-left: 5px;">
<h1>Write an article:</h1>

<?php echo form_open('write/dowrite'); ?>
<input type="hidden" name="article ID, for debugging only" id="article_idarticle" value="<?php echo $article->idarticle; ?>"/>
<p>Title*:<BR/> <textarea id="article_title" name="title" rows="1" style="width: 90%;"><?php echo $article->title; ?></textarea> </p>

<p id="p_article_abstract"><?php if($article->article_abstract) { ?>
Abstract:<BR/><textarea id="article_abstract" name="abstract" rows="5" style="width: 90%;"><?php echo $article->article_abstract; ?></textarea>
<?php } else { ?>
<a href="javascript:defineAbstract()">Create a custom abstract</a>
<?php } ?></p>

<p>Content*:<BR/><textarea id="article_content" name="content" rows="15" style="width: 90%;"><?php echo $article->content; ?></textarea> </p>

<p id="p_article_signature">
    Choose signature <?php echo signature_selection($article); ?>
<p id="custom_signature" <?php if($article->signature_style != 3) echo('style = "visibility:hidden"'); ?>>
<input id="article_custom_signature" name="article_signature" style="width: 90%;" value="<?php echo $article->signature; ?>"/>
</p>
</p>

<p><input onclick="saveArticleBeingWritten()" type="button" value="Save"/>
<input onclick="saveArticleBeingWritten()" type="button" value="Preview"/>
<input onclick="saveArticleBeingWritten()" type="button" value="Publish"/>
<input onclick="saveArticleBeingWritten()" type="button" value="Request testimonials"/></p>


</div>